home *** CD-ROM | disk | FTP | other *** search
/ The World's Largest Collection of Windows Software / The World's Largest Collection of Windows Software - Disc 2.iso / textproc / _b4 / amipro31 / stymacr2.cmz / AUTOSTY.SMM
INI File  |  1992-08-12  |  38KB  |  2,649 lines

  1. [ver]
  2.     4
  3. [sty]
  4.     _macro.sty
  5. [files]
  6. [charset]
  7.     82
  8.     ANSI (Windows, IBM CP 1252)
  9. [revisions]
  10.     0
  11. [prn]
  12.     PostScript Printer
  13. [port]
  14.     LPT1:
  15. [lang]
  16.     1
  17. [desc]
  18.     Automates style sheets that collect information and insert it into new document.
  19.     
  20.     
  21.     
  22.     noautorun
  23.     708845568
  24.     61
  25.     699907907
  26.     3135
  27.     8
  28.     1075
  29.     8246
  30.     29
  31.     31
  32.     
  33.     
  34.     
  35.     
  36.     
  37.     
  38.     1
  39. [fopts]
  40.     0
  41.     1
  42.     0
  43.     0
  44. [lnopts]
  45.     2
  46.     Body Text
  47.     1
  48. [docopts]
  49.     5
  50.     2
  51. [GramStyle]
  52.     
  53. [ParaNum]
  54.     1
  55. [tag]
  56.     Body Text
  57.     2
  58.     [fnt]
  59.         TimesNewRomanPS
  60.         240
  61.         0
  62.         49152
  63.     [algn]
  64.         1
  65.         1
  66.         0
  67.         0
  68.         0
  69.     [spc]
  70.         33
  71.         273
  72.         1
  73.         0
  74.         0
  75.         1
  76.         100
  77.     [brk]
  78.         4
  79.     [line]
  80.         8
  81.         0
  82.         1
  83.         0
  84.         1
  85.         1
  86.         1
  87.         10
  88.         10
  89.         1
  90.     [spec]
  91.         0
  92.         0
  93.         
  94.         0
  95.         1
  96.         1
  97.         0
  98.         0
  99.         0
  100.         0
  101.     [nfmt]
  102.         280
  103.         1
  104.         2
  105.         .
  106.         ,
  107.         $
  108.     Body Text
  109.     0
  110.     0
  111. [tag]
  112.     Body Single
  113.     3
  114.     [fnt]
  115.         TimesNewRomanPS
  116.         240
  117.         0
  118.         49152
  119.     [algn]
  120.         1
  121.         1
  122.         0
  123.         0
  124.         0
  125.     [spc]
  126.         33
  127.         273
  128.         1
  129.         0
  130.         0
  131.         1
  132.         100
  133.     [brk]
  134.         4
  135.     [line]
  136.         8
  137.         0
  138.         1
  139.         0
  140.         1
  141.         1
  142.         1
  143.         10
  144.         10
  145.         1
  146.     [spec]
  147.         0
  148.         0
  149.         
  150.         0
  151.         1
  152.         1
  153.         0
  154.         0
  155.         0
  156.         0
  157.     [nfmt]
  158.         280
  159.         1
  160.         2
  161.         .
  162.         ,
  163.         $
  164.     Body Single
  165.     0
  166.     0
  167. [tag]
  168.     Bullet 1
  169.     5
  170.     [fnt]
  171.         TimesNewRomanPS
  172.         240
  173.         0
  174.         49152
  175.     [algn]
  176.         1
  177.         1
  178.         288
  179.         288
  180.         288
  181.     [spc]
  182.         33
  183.         273
  184.         1
  185.         0
  186.         0
  187.         1
  188.         100
  189.     [brk]
  190.         4
  191.     [line]
  192.         8
  193.         0
  194.         1
  195.         0
  196.         1
  197.         1
  198.         1
  199.         10
  200.         10
  201.         1
  202.     [spec]
  203.         0
  204.         0
  205.         <*5>
  206.         0
  207.         1
  208.         1
  209.         0
  210.         0
  211.         0
  212.         0
  213.     [nfmt]
  214.         280
  215.         1
  216.         2
  217.         .
  218.         ,
  219.         $
  220.     Bullet 1
  221.     0
  222.     0
  223. [tag]
  224.     Number List
  225.     6
  226.     [fnt]
  227.         TimesNewRomanPS
  228.         240
  229.         0
  230.         49152
  231.     [algn]
  232.         1
  233.         1
  234.         360
  235.         360
  236.         360
  237.     [spc]
  238.         33
  239.         273
  240.         1
  241.         0
  242.         0
  243.         1
  244.         100
  245.     [brk]
  246.         4
  247.     [line]
  248.         8
  249.         0
  250.         1
  251.         0
  252.         1
  253.         1
  254.         1
  255.         10
  256.         10
  257.         1
  258.     [spec]
  259.         0
  260.         0
  261.         <*:>.
  262.         360
  263.         1
  264.         1
  265.         0
  266.         0
  267.         0
  268.         0
  269.     [nfmt]
  270.         272
  271.         1
  272.         2
  273.         .
  274.         ,
  275.         $
  276.     Number List
  277.     0
  278.     0
  279. [tag]
  280.     Subhead
  281.     7
  282.     [fnt]
  283.         TimesNewRomanPS
  284.         240
  285.         0
  286.         49155
  287.     [algn]
  288.         1
  289.         1
  290.         0
  291.         0
  292.         0
  293.     [spc]
  294.         33
  295.         273
  296.         1
  297.         72
  298.         72
  299.         1
  300.         100
  301.     [brk]
  302.         4
  303.     [line]
  304.         8
  305.         0
  306.         1
  307.         0
  308.         1
  309.         1
  310.         1
  311.         10
  312.         10
  313.         1
  314.     [spec]
  315.         0
  316.         0
  317.         
  318.         0
  319.         1
  320.         1
  321.         0
  322.         0
  323.         0
  324.         0
  325.     [nfmt]
  326.         272
  327.         1
  328.         2
  329.         .
  330.         ,
  331.         $
  332.     Subhead
  333.     0
  334.     0
  335. [tag]
  336.     Title
  337.     8
  338.     [fnt]
  339.         Arial MT
  340.         360
  341.         0
  342.         16385
  343.     [algn]
  344.         4
  345.         1
  346.         0
  347.         0
  348.         0
  349.     [spc]
  350.         33
  351.         446
  352.         1
  353.         144
  354.         72
  355.         1
  356.         100
  357.     [brk]
  358.         16
  359.     [line]
  360.         8
  361.         0
  362.         1
  363.         0
  364.         1
  365.         1
  366.         1
  367.         10
  368.         10
  369.         1
  370.     [spec]
  371.         0
  372.         0
  373.         
  374.         0
  375.         1
  376.         1
  377.         0
  378.         0
  379.         0
  380.         0
  381.     [nfmt]
  382.         272
  383.         1
  384.         2
  385.         .
  386.         ,
  387.         $
  388.     Title
  389.     0
  390.     0
  391. [tag]
  392.     Outline1
  393.     9
  394.     [fnt]
  395.         Arial MT
  396.         240
  397.         0
  398.         16384
  399.     [algn]
  400.         1
  401.         1
  402.         0
  403.         0
  404.         0
  405.     [spc]
  406.         33
  407.         288
  408.         1
  409.         72
  410.         0
  411.         1
  412.         100
  413.     [brk]
  414.         16
  415.     [line]
  416.         8
  417.         0
  418.         1
  419.         0
  420.         1
  421.         1
  422.         1
  423.         10
  424.         10
  425.         1
  426.     [spec]
  427.         0
  428.         1
  429.         
  430.         0
  431.         1
  432.         1
  433.         0
  434.         0
  435.         0
  436.         0
  437.     [nfmt]
  438.         272
  439.         1
  440.         2
  441.         .
  442.         ,
  443.         $
  444.     Outline1
  445.     0
  446.     0
  447. [tag]
  448.     Outline2
  449.     11
  450.     [fnt]
  451.         TimesNewRomanPS
  452.         200
  453.         0
  454.         49152
  455.     [algn]
  456.         1
  457.         1
  458.         216
  459.         0
  460.         0
  461.     [spc]
  462.         33
  463.         244
  464.         1
  465.         0
  466.         0
  467.         1
  468.         100
  469.     [brk]
  470.         4
  471.     [line]
  472.         8
  473.         0
  474.         1
  475.         0
  476.         1
  477.         1
  478.         1
  479.         10
  480.         10
  481.         1
  482.     [spec]
  483.         0
  484.         2
  485.         
  486.         0
  487.         1
  488.         1
  489.         0
  490.         0
  491.         0
  492.         0
  493.     [nfmt]
  494.         272
  495.         1
  496.         2
  497.         .
  498.         ,
  499.         $
  500.     Outline2
  501.     0
  502.     0
  503. [tag]
  504.     Outline3
  505.     12
  506.     [fnt]
  507.         Times New Roman
  508.         200
  509.         0
  510.         49152
  511.     [algn]
  512.         1
  513.         1
  514.         432
  515.         0
  516.         0
  517.     [spc]
  518.         33
  519.         244
  520.         1
  521.         0
  522.         0
  523.         1
  524.         100
  525.     [brk]
  526.         4
  527.     [line]
  528.         8
  529.         0
  530.         1
  531.         0
  532.         1
  533.         1
  534.         1
  535.         10
  536.         10
  537.         1
  538.     [spec]
  539.         0
  540.         3
  541.         
  542.         0
  543.         1
  544.         1
  545.         0
  546.         0
  547.         0
  548.         0
  549.     [nfmt]
  550.         272
  551.         1
  552.         2
  553.         .
  554.         ,
  555.         $
  556.     Outline3
  557.     0
  558.     0
  559. [tag]
  560.     Outline4
  561.     0
  562.     [fnt]
  563.         TimesNewRomanPS
  564.         200
  565.         0
  566.         49152
  567.     [algn]
  568.         1
  569.         1
  570.         648
  571.         0
  572.         0
  573.     [spc]
  574.         33
  575.         244
  576.         1
  577.         0
  578.         0
  579.         1
  580.         100
  581.     [brk]
  582.         4
  583.     [line]
  584.         8
  585.         0
  586.         1
  587.         0
  588.         1
  589.         1
  590.         1
  591.         10
  592.         10
  593.         1
  594.     [spec]
  595.         0
  596.         4
  597.         
  598.         0
  599.         1
  600.         1
  601.         0
  602.         0
  603.         0
  604.         0
  605.     [nfmt]
  606.         272
  607.         1
  608.         2
  609.         .
  610.         ,
  611.         $
  612.     Outline4
  613.     0
  614.     0
  615. [tag]
  616.     Outline5
  617.     0
  618.     [fnt]
  619.         TimesNewRomanPS
  620.         200
  621.         0
  622.         49152
  623.     [algn]
  624.         1
  625.         1
  626.         864
  627.         0
  628.         0
  629.     [spc]
  630.         33
  631.         244
  632.         1
  633.         0
  634.         0
  635.         1
  636.         100
  637.     [brk]
  638.         4
  639.     [line]
  640.         8
  641.         0
  642.         1
  643.         0
  644.         1
  645.         1
  646.         1
  647.         10
  648.         10
  649.         1
  650.     [spec]
  651.         0
  652.         5
  653.         
  654.         0
  655.         1
  656.         1
  657.         0
  658.         0
  659.         0
  660.         0
  661.     [nfmt]
  662.         272
  663.         1
  664.         2
  665.         .
  666.         ,
  667.         $
  668.     Outline5
  669.     0
  670.     0
  671. [tag]
  672.     Outline6
  673.     0
  674.     [fnt]
  675.         TimesNewRomanPS
  676.         200
  677.         0
  678.         49152
  679.     [algn]
  680.         1
  681.         1
  682.         1080
  683.         0
  684.         0
  685.     [spc]
  686.         33
  687.         244
  688.         1
  689.         0
  690.         0
  691.         1
  692.         100
  693.     [brk]
  694.         4
  695.     [line]
  696.         8
  697.         0
  698.         1
  699.         0
  700.         1
  701.         1
  702.         1
  703.         10
  704.         10
  705.         1
  706.     [spec]
  707.         0
  708.         6
  709.         
  710.         0
  711.         1
  712.         1
  713.         0
  714.         0
  715.         0
  716.         0
  717.     [nfmt]
  718.         272
  719.         1
  720.         2
  721.         .
  722.         ,
  723.         $
  724.     Outline6
  725.     0
  726.     0
  727. [tag]
  728.     Outline7
  729.     0
  730.     [fnt]
  731.         TimesNewRomanPS
  732.         200
  733.         0
  734.         49152
  735.     [algn]
  736.         1
  737.         1
  738.         1296
  739.         0
  740.         0
  741.     [spc]
  742.         33
  743.         244
  744.         1
  745.         0
  746.         0
  747.         1
  748.         100
  749.     [brk]
  750.         4
  751.     [line]
  752.         8
  753.         0
  754.         1
  755.         0
  756.         1
  757.         1
  758.         1
  759.         10
  760.         10
  761.         1
  762.     [spec]
  763.         0
  764.         7
  765.         
  766.         0
  767.         1
  768.         1
  769.         0
  770.         0
  771.         0
  772.         0
  773.     [nfmt]
  774.         272
  775.         1
  776.         2
  777.         .
  778.         ,
  779.         $
  780.     Outline7
  781.     0
  782.     0
  783. [tag]
  784.     Outline8
  785.     0
  786.     [fnt]
  787.         TimesNewRomanPS
  788.         200
  789.         0
  790.         49152
  791.     [algn]
  792.         1
  793.         1
  794.         1512
  795.         0
  796.         0
  797.     [spc]
  798.         33
  799.         244
  800.         1
  801.         0
  802.         0
  803.         1
  804.         100
  805.     [brk]
  806.         4
  807.     [line]
  808.         8
  809.         0
  810.         1
  811.         0
  812.         1
  813.         1
  814.         1
  815.         10
  816.         10
  817.         1
  818.     [spec]
  819.         0
  820.         8
  821.         
  822.         0
  823.         1
  824.         1
  825.         0
  826.         0
  827.         0
  828.         0
  829.     [nfmt]
  830.         272
  831.         1
  832.         2
  833.         .
  834.         ,
  835.         $
  836.     Outline8
  837.     0
  838.     0
  839. [tag]
  840.     Bullet
  841.     0
  842.     [fnt]
  843.         TimesNewRomanPS
  844.         240
  845.         0
  846.         49152
  847.     [algn]
  848.         1
  849.         1
  850.         0
  851.         288
  852.         288
  853.     [spc]
  854.         33
  855.         273
  856.         1
  857.         0
  858.         0
  859.         1
  860.         100
  861.     [brk]
  862.         4
  863.     [line]
  864.         8
  865.         0
  866.         1
  867.         0
  868.         1
  869.         1
  870.         1
  871.         10
  872.         10
  873.         1
  874.     [spec]
  875.         0
  876.         0
  877.         <*0>
  878.         360
  879.         1
  880.         1
  881.         0
  882.         0
  883.         0
  884.         0
  885.     [nfmt]
  886.         272
  887.         1
  888.         2
  889.         .
  890.         ,
  891.         $
  892.     Bullet
  893.     0
  894.     0
  895. [lay]
  896.     Standard
  897.     513
  898.     [rght]
  899.         15840
  900.         12240
  901.         1
  902.         1440
  903.         1440
  904.         1
  905.         1440
  906.         1440
  907.         0
  908.         1
  909.         0
  910.         1
  911.         0
  912.         2
  913.         1
  914.         1440
  915.         10800
  916.         12
  917.         1
  918.         720
  919.         1
  920.         1440
  921.         1
  922.         2160
  923.         1
  924.         2880
  925.         1
  926.         3600
  927.         1
  928.         4320
  929.         1
  930.         5040
  931.         1
  932.         5760
  933.         1
  934.         6480
  935.         1
  936.         7200
  937.         1
  938.         7920
  939.         1
  940.         8640
  941.     [hrght]
  942.     [lyfrm]
  943.         1
  944.         11200
  945.         0
  946.         0
  947.         12240
  948.         1440
  949.         0
  950.         1
  951.         3
  952.         1 0 0 0 0 0 0
  953.         0
  954.         0
  955.         1
  956.     [frmlay]
  957.         1440
  958.         12240
  959.         1
  960.         1440
  961.         144
  962.         1
  963.         648
  964.         1440
  965.         0
  966.         1
  967.         0
  968.         1
  969.         1
  970.         0
  971.         1
  972.         1440
  973.         10800
  974.         1
  975.         3
  976.         9360
  977.     [txt]
  978. Automated Style Sheet Macro     Revision <:db<*&><* >>
  979.  
  980. Page <:P10,0,> of <:X3,16384;NumPages>6<:X~3,16384;NumPages>    <:db<*!><* >>
  981.  
  982. >
  983.     [frght]
  984.     [lyfrm]
  985.         1
  986.         13248
  987.         0
  988.         14400
  989.         12240
  990.         15840
  991.         0
  992.         1
  993.         3
  994.         1 0 0 0 0 0 0
  995.         0
  996.         0
  997.         2
  998.     [frmlay]
  999.         15840
  1000.         12240
  1001.         1
  1002.         1440
  1003.         792
  1004.         1
  1005.         14472
  1006.         1440
  1007.         0
  1008.         1
  1009.         0
  1010.         1
  1011.         1
  1012.         0
  1013.         1
  1014.         1440
  1015.         10800
  1016.         2
  1017.         2
  1018.         4680
  1019.         3
  1020.         9360
  1021.     [txt]
  1022. >
  1023. [elay]
  1024. [l1]
  1025.     0
  1026. [edoc]
  1027. @Outline1@<:#283,9360>declares and defines
  1028.  
  1029. @Outline2@<:#240,9360>DEFINE MoveWindow()    DllCall("user,MoveWindow,HHHHHHH",%1,%2,%3,%4,%5,1)
  1030.  
  1031. @Outline2@<:#240,9360>DEFINE GetWindowRect()    DllCall("user,GetWindowRect,HHN",%1,%2)
  1032.  
  1033. @Outline2@<:#240,9360>DEFINE GetClientRect()    DllCall("user,GetClientRect,HHN",%1,%2)
  1034.  
  1035. @Outline2@<:#240,9360>Define ScreenToClient()    DllCall("user,ScreenToClient,HHN", %1, %2)
  1036.  
  1037. @Outline2@<:#240,9360>Define ClientToScreen()    DllCall("user,ClientToScreen,HHN", %1, %2)
  1038.  
  1039. @Outline2@<:#240,9360>Define ShowWindow()    DllCall("User,ShowWindow,AHH",%1,%2)
  1040.  
  1041. @Outline2@<:#240,9360>Define EnableWindow()    DllCall("User,EnableWindow,AHH",%1,%2)
  1042.  
  1043. @Outline2@<:#240,9360>define SetFocus()        DllCall("user,SetFocus,HH", %1)
  1044.  
  1045. @Outline2@<:#240,9360>define HFONT    "Setfont:hFont"
  1046.  
  1047. @Outline2@<:#240,9360>define SendMessage(hwnd, msg, wpara, lparm)    DllCall("user,SendMessage,HHHHJ", %1, %2, %3, %4)
  1048.  
  1049. @Outline2@<:#240,9360>define WM_SETFONT    0x30
  1050.  
  1051. @Outline2@<:#240,9360>define WM_USER            0x0400
  1052.  
  1053. @Outline2@<:#240,9360>define BM_SETCHECK       0x0401
  1054.  
  1055. @Outline2@<:#480,9360>define CreateFont()    DllCall("gdi,CreateFont,HHHHHHHHHHHHHHC", %1, %2, %3, %4, %5, %6, %7, %8, %9, %10, %11, %12, %13, %14)
  1056.  
  1057. @Outline2@<:#240,9360>define DeleteObject(handle)    DllCall("gdi,DeleteObject,HH", %1)
  1058.  
  1059. @Outline2@<:#240,9360>define GetActiveWindow()    DllCall("user,GetActiveWindow,H")
  1060.  
  1061. @Outline2@<:#240,9360>define SetWindowText()    DllCall("user,SetWindowText,IHC", %1, %2)
  1062.  
  1063. @Outline2@<:#240,9360>define TitleBarMsg()        SetWindowText(GetActiveWindow(), %1)
  1064.  
  1065. @Outline2@<:#240,9360>define GetWindowText()    DllCall("user,GetWindowText,HHFH", %1, %2, %3)
  1066.  
  1067. @Outline2@<:#240,9360>define MapDialogRect()    DllCall("user,MapDialogRect,HHN", %1, %2)
  1068.  
  1069. @Outline2@<:#240,9360>declare fillboxfields(target);
  1070.  
  1071. @Outline2@<:#240,9360>declare torchfields(target);
  1072.  
  1073. @Outline2@<:#240,9360>declare initcapit(string);
  1074.  
  1075. @Outline1@<:#283,9360>function main()
  1076.  
  1077. @Outline2@'verify this is a clean untitled
  1078.  
  1079. @Outline3@if GetOpenFileName$() !="" or Filechanged(0,0) != 0
  1080.  
  1081. @Outline3@    message("This macro is for automated style sheets.  To use it, choose File/New and leave Run macro selected.")
  1082.  
  1083. @Outline3@    exit function
  1084.  
  1085. @Outline3@endif
  1086.  
  1087. @Outline2@hourglass(1)
  1088.  
  1089. @Outline2@ignorekeyboard(2)
  1090.  
  1091. @Outline2@rmac=getrunningmacrofile$()
  1092.  
  1093. @Outline2@<:#240,9360>'burn power fields if entry is in AMIPRO2.INI
  1094.  
  1095. @Outline3@<:#240,9360>burnfields=getprofilestring$("AutoStyleSheets", "NoQuestions", "AMIPRO2.INI")
  1096.  
  1097. @Outline3@<:#240,9360>if burnfields = 1
  1098.  
  1099. @Outline3@<:#240,9360>    torchfields("as_")
  1100.  
  1101. @Outline3@<:#240,9360>    exit function
  1102.  
  1103. @Outline3@<:#240,9360>elseif burnfields = ""
  1104.  
  1105. @Outline3@<:#240,9360>    writeprofilestring("AutoStyleSheets", "NoQuestions", 0, "AMIPRO2.INI")
  1106.  
  1107. @Outline3@<:#240,9360>endif
  1108.  
  1109. @Outline2@<:#240,9360>datagood=getprofilestring$("AutoStyleSheets", "DataGood", "AMIPRO2.INI")
  1110.  
  1111. @Outline2@<:#240,9360>if datagood != 1
  1112.  
  1113. @Outline2@<:#240,9360>    macpath=GetMacPath$()
  1114.  
  1115. @Outline2@<:#240,9360>    collector="{macpath}collect.smm"
  1116.  
  1117. @Outline2@<:#240,9360>    calli collector()
  1118.  
  1119. @Outline2@<:#240,9360>endif
  1120.  
  1121. @Outline2@<:#240,9360>'font handler
  1122.  
  1123. @Outline3@<:#240,9360>AllocGlobalVar(HFONT, 1)
  1124.  
  1125. @Outline3@<:#240,9360>SetGlobalVar(HFONT, 0)
  1126.  
  1127. @Outline2@<:#240,9360>cnt = GetPowerFieldCount(0)
  1128.  
  1129. @Outline2@<:#240,9360>if (0 != cnt)
  1130.  
  1131. @Outline2@<:#240,9360>    result=fillboxfields("as_def")
  1132.  
  1133. @Outline3@<:#240,9360>    if result=0 or result = 2
  1134.  
  1135. @Outline3@<:#240,9360>        goto blowout
  1136.  
  1137. @Outline3@<:#240,9360>    endif
  1138.  
  1139. @Outline2@<:#240,9360>    result = fillboxfields("as_user")
  1140.  
  1141. @Outline3@<:#240,9360>    if result=0 or result = 2
  1142.  
  1143. @Outline3@<:#240,9360>        goto blowout
  1144.  
  1145. @Outline3@<:#240,9360>    endif
  1146.  
  1147. @Outline2@<:#240,9360>else
  1148.  
  1149. @Outline2@<:#240,9360>'    message("No fields")
  1150.  
  1151. @Outline2@<:#240,9360>endif
  1152.  
  1153. @Outline2@<:#240,9360>blowout:
  1154.  
  1155. @Outline2@<:#240,9360>torchfields("as_")
  1156.  
  1157. @Outline2@<:#240,9360>mark="as_starttext"
  1158.  
  1159. @Outline2@<:#240,9360>result=MarkBookMark(mark, 4002  )
  1160.  
  1161. @Outline2@<:#240,9360>if result = 1
  1162.  
  1163. @Outline2@<:#240,9360>    MarkBookMark(mark, 4004  )
  1164.  
  1165. @Outline2@<:#240,9360>endif
  1166.  
  1167. @Outline2@<:#240,9360>'font bailout
  1168.  
  1169. @Outline3@<:#240,9360>font = GetGlobalVar$(HFONT)        ' If we created
  1170.  
  1171. @Outline3@<:#240,9360>if (0 != font)                ' the font.
  1172.  
  1173. @Outline3@<:#240,9360>    DeleteObject(font)        ' Delete it
  1174.  
  1175. @Outline3@<:#240,9360>endif
  1176.  
  1177. @Outline3@<:#240,9360>freeglobalvar(HFONT)
  1178.  
  1179. @Outline2@<:#240,9360>DocInfo(""  ""  1  )
  1180.  
  1181. @Outline2@hourglass(0)
  1182.  
  1183. @Outline2@<:#240,9360>end function
  1184.  
  1185. @Outline1@<:#283,9360>FUNCTION fillboxfields(target)
  1186.  
  1187. @Outline2@<:#240,9360>onerror blowout
  1188.  
  1189. @Outline2@<:#240,9360>cnt = GetPowerFieldCount(0)
  1190.  
  1191. @Outline3@<:#240,9360>if cnt = 0
  1192.  
  1193. @Outline3@<:#240,9360>    exit function
  1194.  
  1195. @Outline3@<:#240,9360>endif
  1196.  
  1197. @Outline2@<:#240,9360>rmac=getrunningmacrofile$()
  1198.  
  1199. @Outline2@<:#240,9360>allocglobalvar("target", 1)
  1200.  
  1201. @Outline2@<:#240,9360>setglobalvar("target", target)
  1202.  
  1203. @Outline2@<:#240,9360>dim fields(cnt)
  1204.  
  1205. @Outline2@<:#240,9360>dim globvars(1)
  1206.  
  1207. @Outline2@<:#240,9360><:f200,2TimesNewRomanPS,255,0,0>dim echovars(1)<:f>
  1208.  
  1209. @Outline2@<:#240,9360>numglobs=0
  1210.  
  1211. @Outline2@<:#240,9360>GetPowerFields(0, &fields)
  1212.  
  1213. @Outline2@<:#240,9360>'load &globvars
  1214.  
  1215. @Outline3@<:#240,9360>mergefieldspresent=0
  1216.  
  1217. @Outline3@<:#240,9360>for i = 1 to cnt
  1218.  
  1219. @Outline3@<:#245,9360>    pftype = StrField$(fields(i), 2, ",")        'get the power <+!>field type<-!>
  1220.  
  1221. @Outline3@<:#240,9360>    if pftype=12    'there is a merge field in the doc.
  1222.  
  1223. @Outline3@<:#240,9360>        mergefieldspresent=1
  1224.  
  1225. @Outline3@<:#240,9360>    endif
  1226.  
  1227. @Outline3@<:#245,9360>    pffield = StrField$(fields(i), 3, ",")        'get the power <+!>field<-!>
  1228.  
  1229. @Outline3@<:#245,9360>    varname=StrField$(pffield, 3, " ")        'get the name of the <+!>variable 
  1230. <-!>in the PF
  1231.  
  1232. @Outline3@<:#240,9360>    showtype=strfield$(varname, 6, "_")
  1233.  
  1234. @Outline3@<:#240,9360>    if lcase$(showtype)="address2"
  1235.  
  1236. @Outline3@<:#240,9360>        secondaddressline=1
  1237.  
  1238. @Outline3@<:#240,9360>    endif
  1239.  
  1240. @Outline3@<:#490,9360>    <:f200,2TimesNewRomanPS,255,0,0>echovar=strcat$(<:f>strfield$(varname, 1, "_"), "_", strfield$(varname, 2, "_"), "_", strfield$(varname, 3, "_"), "_", strfield$(varname, 4, "_"), "_", strfield$(varname, 5, "_"), "_",<:f200,2TimesNewRomanPS,255,0,0> "echo_"
  1241. )<:f>
  1242.  
  1243. @Outline3@<:#240,9360>    targlen=len(target)
  1244.  
  1245. @Outline3@<:#245,9360>    if left$(varname, targlen)=target <:f200,2TimesNewRomanPS,255,0,0>and showtype !=  "echo"<:f>
  1246.  
  1247. @Outline3@<:#240,9360>    numglobs=numglobs+1
  1248.  
  1249. @Outline3@<:#240,9360>        result=arrayinsert(&globvars, numglobs, fields(i))
  1250.  
  1251. @Outline3@<:#240,9360>        if result = 0
  1252.  
  1253. @Outline3@<:#240,9360>            goto blowout
  1254.  
  1255. @Outline3@<:#245,9360>        <:f200,2TimesNewRomanPS,255,0,0>arrayinsert(&echovars, numglobs, echovar)<:f>
  1256.  
  1257. @Outline3@<:#240,9360>        endif
  1258.  
  1259. @Outline3@<:#240,9360>    endif
  1260.  
  1261. @Outline3@<:#240,9360>next    
  1262.  
  1263. @Outline3@<:#240,9360>'determine if we have any suitable PFs
  1264.  
  1265. @Outline4@<:#240,9360>if numglobs=0
  1266.  
  1267. @Outline4@<:#240,9360>'    message(target)
  1268.  
  1269. @Outline4@<:#240,9360>    fillboxfields = 3 'this attempt failed, but don't blow out completely
  1270.  
  1271. @Outline4@<:#240,9360>    exit function
  1272.  
  1273. @Outline4@<:#240,9360>endif
  1274.  
  1275. @Outline2@<:#240,9360>'fill dialog box with labels & pre-build
  1276.  
  1277. @Outline3@<:#240,9360>allocglobalvar("numglobs", 1)
  1278.  
  1279. @Outline3@<:#240,9360>setglobalvar("numglobs", numglobs)
  1280.  
  1281. @Outline3@<:#240,9360>arraysort(&globvars, 3, "_")                'sort the array on varnum
  1282.  
  1283. @Outline3@<:#240,9360>for i = 1 to numglobs
  1284.  
  1285. @Outline3@<:#245,9360>    pffield = StrField$(globvars(i), 3, ",")        'get the power <+!>field<-!>
  1286.  
  1287. @Outline3@<:#245,9360>    varname=StrField$(pffield, 3, " ")        'get the name of the <+!>variable 
  1288. <-!>in the PF
  1289.  
  1290. @Outline3@<:#240,9360>    quotechar=chr$(34)
  1291.  
  1292. @Outline3@<:#245,9360>    varlabel=StrField$(globvars(i), 2, quotechar)        'get the <+!>label 
  1293. <-!>for the variable
  1294.  
  1295. @Outline3@<:#240,9360>    showtype=strfield$(varname, 6, "_")
  1296.  
  1297. @Outline3@<:#240,9360>    profilestringstuff=""
  1298.  
  1299. @Outline3@<:#240,9360>    if showtype != (-1) and showtype != "echo" and showtype != ""
  1300.  
  1301. @Outline3@<:#240,9360>        profilestringstuff=getprofilestring$("AutoStyleSheets", showtype, "AMIPRO2.INI")
  1302.  
  1303. @Outline3@<:#240,9360>        if lcase$(showtype) = "address1" and secondaddressline !=1
  1304.  
  1305. @Outline3@<:#240,9360>            address2=getprofilestring$("AutoStyleSheets", "Address2", "AMIPRO2.INI")
  1306.  
  1307. @Outline3@<:#240,9360>            if address2 != ""
  1308.  
  1309. @Outline3@<:#240,9360>                profilestringstuff=strcat$(profilestringstuff, ", " address2)
  1310.  
  1311. @Outline3@<:#240,9360>            endif
  1312.  
  1313. @Outline3@<:#240,9360>        endif
  1314.  
  1315. @Outline3@<:#240,9360>    endif
  1316.  
  1317. @Outline3@<:#240,9360>    allocglobalvar(varname, 1)
  1318.  
  1319. @Outline3@<:#490,9360>    <:f200,2TimesNewRomanPS,255,0,0>echovar=strcat$(<:f>strfield$(varname, 1, "_"), "_", strfield$(varname, 2, "_"), "_", strfield$(varname, 3, "_"), "_", strfield$(varname, 4, "_"), "_", strfield$(varname, 5, "_"), "_",<:f200,2TimesNewRomanPS,255,0,0> "echo_"
  1320. )<:f>
  1321.  
  1322. @Outline3@<:#240,9360><:f200,2TimesNewRomanPS,255,0,0>    allocglobalvar(echovar, 1)<:f>
  1323.  
  1324. @Outline3@<:#240,9360>    if lcase$(left$(varlabel, 5)) = "type "
  1325.  
  1326. @Outline3@<:#240,9360>        lenwithouttype=len(varlabel) - 5
  1327.  
  1328. @Outline3@<:#240,9360>        varlabel=right$(varlabel, lenwithouttype)
  1329.  
  1330. @Outline3@<:#240,9360>    endif
  1331.  
  1332. @Outline3@<:#240,9360>    if lcase$(right$(varlabel, 5)) = " here"
  1333.  
  1334. @Outline3@<:#240,9360>        lenwithouthere=len(varlabel) - 5
  1335.  
  1336. @Outline3@<:#240,9360>        varlabel=left$(varlabel, lenwithouthere)
  1337.  
  1338. @Outline3@<:#240,9360>    endif
  1339.  
  1340. @Outline3@<:#240,9360>    varlabel=initcapit(varlabel)
  1341.  
  1342. @Outline3@<:#240,9360>    filledit(1000 + i, "{varlabel}:")
  1343.  
  1344. @Outline3@<:#240,9360>    filledit(8000 + i, profilestringstuff)
  1345.  
  1346. @Outline3@<:#240,9360>next
  1347.  
  1348. @Outline3@<:#240,9360>SetDlgCallBack(0,"{rmac}!PreBuild")
  1349.  
  1350. @Outline3@<:#240,9360>'SetDlgCallBack(23,"{rmac}!savesty")        'keep this only if save as style sheet should be a callback
  1351.  
  1352. @Outline2@<:#240,9360>box=dialogbox(".", "autostyle")
  1353.  
  1354. @Outline2@<:#240,9360>fillboxfields = box    'set this function's return value to the ID returned by the box
  1355.  
  1356. @Outline2@<:#240,9360>if box= 0 or box =2 
  1357.  
  1358. @Outline2@<:#240,9360>    goto blowout
  1359.  
  1360. @Outline2@<:#240,9360>endif
  1361.  
  1362. @Outline2@<:#240,9360>'set global vars & update fields
  1363.  
  1364. @Outline3@<:#240,9360>for i = 1 to numglobs
  1365.  
  1366. @Outline3@<:#240,9360>    contents=getdialogfield$(8000 +i)
  1367.  
  1368. @Outline3@<:#245,9360>    pfid = StrField$(globvars(i), 1, ",")        'get the power <+!>field id<-!>
  1369.  
  1370. @Outline3@<:#245,9360>    pftype = StrField$(globvars(i), 2, ",")        'get the power <+!>field type<-!>
  1371.  
  1372. @Outline3@<:#245,9360>    pffield = StrField$(globvars(i), 3, ",")        'get the power <+!>field<-!>
  1373.  
  1374. @Outline3@<:#245,9360>    varname=StrField$(pffield, 3, " ")        'get the name of the <+!>variable 
  1375. <-!>in the PF
  1376.  
  1377. @Outline3@<:#490,9360>    <:f200,2TimesNewRomanPS,255,0,0>echovar=strcat$(<:f>strfield$(varname, 1, "_"), "_", strfield$(varname, 2, "_"), "_", strfield$(varname, 3, "_"), "_", strfield$(varname, 4, "_"), "_", strfield$(varname, 5, "_"), "_",<:f200,2TimesNewRomanPS,255,0,0> "echo_"
  1378. )<:f>
  1379.  
  1380. @Outline3@<:#240,9360><:f200,2TimesNewRomanPS,255,0,0>    setglobalvar(echovar, contents)<:f>
  1381.  
  1382. @Outline3@<:#240,9360>    setglobalvar(varname, contents)
  1383.  
  1384. @Outline3@<:#240,9360>    if mergefieldspresent=1
  1385.  
  1386. @Outline3@<:#240,9360>        result=GoToPowerField(pfid, pftype)
  1387.  
  1388. @Outline3@<:#240,9360>'        FieldUpdate(pfid, pftype, pffield)
  1389.  
  1390. @Outline3@<:#240,9360>        FieldEvaluate()
  1391.  
  1392. @Outline3@<:#240,9360>    endif
  1393.  
  1394. @Outline3@<:#240,9360>next
  1395.  
  1396. @Outline3@<:#240,9360>if mergefieldspresent = 0
  1397.  
  1398. @Outline3@<:#240,9360>    fieldupdateall()
  1399.  
  1400. @Outline3@<:#240,9360>endif
  1401.  
  1402. @Outline2@<:#240,9360>blowout:
  1403.  
  1404. @Outline3@<:#240,9360>    call torchfields(target)
  1405.  
  1406. @Outline3@<:#240,9360>    call freeglobs(target)
  1407.  
  1408. @Outline3@<:#240,9360>    freeglobalvar("target")
  1409.  
  1410. @Outline3@<:#240,9360>    freeglobalvar("numglobs")
  1411.  
  1412. @Outline2@<:#240,9360>if box=3
  1413.  
  1414. @Outline2@<:#240,9360>    runlater("{rmac}!<:Zbuttoncheck>AmiButtonCheck<:Z~buttoncheck>(25550, 1)", 0.1)
  1415.  
  1416. @Outline2@<:#240,9360>    runlater("{rmac}!AmiUIGray(25550, 0)", 0.1)
  1417.  
  1418. @Outline2@<:#240,9360>    runlater("{rmac}!AmiUIGray(25551, 0)", 0.1)
  1419.  
  1420. @Outline2@<:#240,9360>    runlater("{rmac}!AmiUIGray(25975, 0)", 0.1)
  1421.  
  1422. @Outline2@    pause(008)
  1423.  
  1424. @Outline2@<:#240,9360>    result = SaveAsNewStyle
  1425.  
  1426. @Outline2@<:#240,9360>endif
  1427.  
  1428. @Outline2@<:#240,9360>END FUNCTION
  1429.  
  1430. @Outline1@<:#283,9360>function AmiButtonCheck(ID, State)
  1431.  
  1432. @Outline2@<:#240,9360>hdlg = getactivewindow()
  1433.  
  1434. @Outline2@<:#240,9360>idnew = GetDlgItem(Hdlg, ID)
  1435.  
  1436. @Outline2@<:#240,9360>AppSendMessage(idnew, BM_SETCHECK, state, 0)
  1437.  
  1438. @Outline2@<:#240,9360>end function
  1439.  
  1440. @Outline1@<:#283,9360>function AmiUIGray(ID, State)
  1441.  
  1442. @Outline2@<:#240,9360>hdlg = getactivewindow()
  1443.  
  1444. @Outline2@<:#240,9360>idnew = GetDlgItem(Hdlg, ID)
  1445.  
  1446. @Outline2@<:#240,9360>enablewindow(idnew, state)
  1447.  
  1448. @Outline2@<:#240,9360>end function
  1449.  
  1450. @Outline1@<:#283,9360>FUNCTION freeglobs(target)
  1451.  
  1452. @Outline2@<:#240,9360>'singlestep(0)
  1453.  
  1454. @Outline2@<:#240,9360>targlen=len(target)
  1455.  
  1456. @Outline2@<:#240,9360>numglobs=getglobalvarcount()
  1457.  
  1458. @Outline2@<:#240,9360>dim globnuke(numglobs)
  1459.  
  1460. @Outline2@<:#240,9360>getglobalvarnames(&globnuke)
  1461.  
  1462. @Outline2@<:#240,9360>for i = 1 to numglobs
  1463.  
  1464. @Outline2@<:#240,9360>    if left$(globnuke(i), targlen)=target
  1465.  
  1466. @Outline2@<:#240,9360>        freeglobalvar(globnuke(i))
  1467.  
  1468. @Outline2@<:#240,9360>    endif
  1469.  
  1470. @Outline2@<:#240,9360>next
  1471.  
  1472. @Outline2@<:#240,9360>end function
  1473.  
  1474. @Outline1@<:#283,9360>FUNCTION torchfields(target)
  1475.  
  1476. @Outline2@<:#240,9360>'singlestep(0)
  1477.  
  1478. @Outline2@<:#240,9360>cnt = GetPowerFieldCount(0)
  1479.  
  1480. @Outline2@<:#240,9360>if (0 != cnt)
  1481.  
  1482. @Outline2@<:#240,9360>    dim fields(cnt)
  1483.  
  1484. @Outline2@<:#240,9360>    GetPowerFields(0, &fields)
  1485.  
  1486. @Outline2@<:#240,9360>    for i = 1 to cnt
  1487.  
  1488. @Outline2@<:#240,9360>        pfid = StrField$(fields(i), 1, ",")
  1489.  
  1490. @Outline2@<:#240,9360>        pftype = StrField$(fields(i), 2, ",")
  1491.  
  1492. @Outline2@<:#245,9360>        pffield = StrField$(fields(i), 3, ",")        'get the power <+!>field<-!>
  1493.  
  1494. @Outline2@<:#245,9360>        varname=StrField$(pffield, 3, " ")        'get the name of the <+!>variable 
  1495. <-!>in the PF
  1496.  
  1497. @Outline2@<:#240,9360>        targlen=len(target)
  1498.  
  1499. @Outline2@<:#240,9360>        if left$(varname, targlen)=target
  1500.  
  1501. @Outline2@<:#240,9360>            FieldRemove(pfid, pftype);
  1502.  
  1503. @Outline2@<:#240,9360>        endif
  1504.  
  1505. @Outline2@<:#240,9360>    next
  1506.  
  1507. @Outline2@<:#240,9360>else
  1508.  
  1509. @Outline2@<:#240,9360>'    message("No fields")
  1510.  
  1511. @Outline2@<:#240,9360>endif
  1512.  
  1513. @Outline2@<:#240,9360>END FUNCTION
  1514.  
  1515. @Outline1@<:#283,9360>function savesty(Hdlg,id,dummy)    'pitch if not a callback
  1516.  
  1517. @Outline2@<:#240,9360>SaveAsNewStyle
  1518.  
  1519. @Outline2@<:#240,9360>setfocus(hdlg)
  1520.  
  1521. @Outline2@<:#240,9360>end function
  1522.  
  1523. @Outline1@<:#283,9360>Function PreBuild(Hdlg,id,dummy)
  1524.  
  1525. @Outline2@<:#240,9360>target=getglobalvar$("target")
  1526.  
  1527. @Outline2@<:#240,9360>numglobs=getglobalvar$("numglobs")
  1528.  
  1529. @Outline2@<:#240,9360>'font handler
  1530.  
  1531. @Outline3@<:#240,9360>Font = CreateFont(13, 0, 0, 0, 400, 0, 0, 0, 0, 0, 0, 0, 32, "Helv")
  1532.  
  1533. @Outline3@<:#240,9360>if (Font)
  1534.  
  1535. @Outline3@<:#240,9360>    hctl = GetDlgItem(hDlg, 1050)
  1536.  
  1537. @Outline3@<:#240,9360>    hctl2 = GetDlgItem(hDlg, 1060)
  1538.  
  1539. @Outline3@<:#240,9360>    SendMessage(hctl, WM_SETFONT, font, 0)
  1540.  
  1541. @Outline3@<:#240,9360>    SendMessage(hctl2, WM_SETFONT, font, 0)
  1542.  
  1543. @Outline3@<:#240,9360>for i =8000 to 8009
  1544.  
  1545. @Outline3@<:#240,9360>    hctl = GetDlgItem(hDlg, i)
  1546.  
  1547. @Outline3@<:#240,9360>    SendMessage(hctl, WM_SETFONT, font, 0)
  1548.  
  1549. @Outline3@<:#240,9360>next
  1550.  
  1551. @Outline3@<:#240,9360>    SetGlobalVar(HFONT, Font)
  1552.  
  1553. @Outline3@<:#240,9360>endif 
  1554.  
  1555. @Outline2@<:#240,9360>'name the box and show the right buttons and static text
  1556.  
  1557. @Outline3@<:#240,9360>CurStyleSheet = GetDocInfo$(3)
  1558.  
  1559. @Outline3@<:#240,9360>CurStyleSheet = ucase$(CurStyleSheet)
  1560.  
  1561. @Outline3@<:#240,9360>lb=chr$(091)
  1562.  
  1563. @Outline3@<:#240,9360>rb=chr$(093)
  1564.  
  1565. @Outline3@<:#240,9360>CurStyleSheet = strcat$(lb, CurStyleSheet, rb)
  1566.  
  1567. @Outline3@<:#240,9360>if target ="as_def"
  1568.  
  1569. @Outline3@<:#240,9360>    TitleBarMsg("Default Information")
  1570.  
  1571. @Outline3@<:#240,9360>    ShowWindow(GetDlgItem(Hdlg,3), 1) ' show the save as button
  1572.  
  1573. @Outline3@<:#240,9360>    ShowWindow(GetDlgItem(Hdlg,1060), 0) ' hide the 1060 field static text
  1574.  
  1575. @Outline3@<:#240,9360>    L1="Type the information that you want to appear each time "
  1576.  
  1577. @Outline3@<:#240,9360>    L2="you create this type of document.  Choose OK to insert this information "
  1578.  
  1579. @Outline3@<:#240,9360>    L3="into the current document only.  Choose Save As to save this "
  1580.  
  1581. @Outline3@<:#240,9360>    L4="information to a new style sheet."
  1582.  
  1583. @Outline3@<:#240,9360>    helptext="{L1}{L2}{L3}{L4}"
  1584.  
  1585. @Outline3@<:#240,9360>    filledit(1050, helptext)
  1586.  
  1587. @Outline3@<:#240,9360>else
  1588.  
  1589. @Outline3@<:#240,9360>    TitleBarMsg("Optional Information")
  1590.  
  1591. @Outline3@<:#240,9360>    ShowWindow(GetDlgItem(Hdlg,3), 0) ' hide the save as button
  1592.  
  1593. @Outline3@<:#240,9360>    ShowWindow(GetDlgItem(Hdlg,1060), 0) ' hide the 1060 field static text
  1594.  
  1595. @Outline3@<:#240,9360>    L1="Type the information you want to appear "
  1596.  
  1597. @Outline3@<:#240,9360>    L2="in this document."
  1598.  
  1599. @Outline3@<:#240,9360>    helptext="{L1}{L2}{L3}{L4}"
  1600.  
  1601. @Outline3@<:#240,9360>    filledit(1050, helptext)
  1602.  
  1603. @Outline3@<:#240,9360>endif
  1604.  
  1605. @Outline2@<:#240,9360>'hide static text and edit fields
  1606.  
  1607. @Outline3@<:#240,9360>for i = (numglobs + 1) to 9
  1608.  
  1609. @Outline3@<:#240,9360>    stid=1000 + i
  1610.  
  1611. @Outline3@<:#240,9360>    ShowWindow(GetDlgItem(Hdlg, stid), 0) ' hide the static text field
  1612.  
  1613. @Outline3@<:#240,9360>    ebid=8000 + i
  1614.  
  1615. @Outline3@<:#240,9360>    ShowWindow(GetDlgItem(Hdlg, ebid), 0) ' hide the edit box
  1616.  
  1617. @Outline3@<:#240,9360>next    
  1618.  
  1619. @Outline2@<:#240,9360>'size the box
  1620.  
  1621. @Outline3@<:#240,9360>DIM rect(4)
  1622.  
  1623. @Outline3@<:#240,9360>GetWindowRect(hDlg,&rect)
  1624.  
  1625. @Outline3@<:#240,9360>x=rect(1)
  1626.  
  1627. @Outline3@<:#240,9360>y=rect(2)
  1628.  
  1629. @Outline3@<:#240,9360>xL=rect(3)
  1630.  
  1631. @Outline3@<:#240,9360>yL=rect(4)
  1632.  
  1633. @Outline3@<:#240,9360>MoveBase=24
  1634.  
  1635. @Outline3@<:#240,9360>moveshrink=MoveBase * (9-numglobs)
  1636.  
  1637. @Outline4@<:#240,9360>if target="as_def"
  1638.  
  1639. @Outline4@<:#240,9360>    moveshrink=moveshrink + 22
  1640.  
  1641. @Outline4@<:#240,9360>    max=145
  1642.  
  1643. @Outline4@<:#240,9360>else
  1644.  
  1645. @Outline4@<:#240,9360>    moveshrink=moveshrink + 50    'shrink extra amount for less 1050 text
  1646.  
  1647. @Outline4@<:#240,9360>    max=217
  1648.  
  1649. @Outline4@<:#240,9360>endif
  1650.  
  1651. @Outline4@<:#240,9360>if moveshrink <;> max
  1652.  
  1653. @Outline4@<:#240,9360>    moveshrink = max
  1654.  
  1655. @Outline4@<:#240,9360>endif
  1656.  
  1657. @Outline3@<:#240,9360>MoveWindow(hDlg,x,y,xL-x,yL-(y+moveshrink))
  1658.  
  1659. @Outline2@<:#240,9360>'move the helptext box
  1660.  
  1661. @Outline3@<:#240,9360>hwndCtrl=GetDlgItem(hdlg, 1050)
  1662.  
  1663. @Outline3@<:#240,9360>DIM rect2(4)
  1664.  
  1665. @Outline3@<:#240,9360>DIM rect3(4)
  1666.  
  1667. @Outline3@<:#240,9360>GetWindowRect(hwndCtrl,&rect2)
  1668.  
  1669. @Outline3@<:#240,9360>ScreenToClient(hDlg, &rect2)    'convert 1050's screen-relative coordinates to hdlg-relative coordinates
  1670.  
  1671. @Outline3@<:#240,9360>GetClientRect(hwndCtrl, &rect3)    'get xL & yL numbers (length & width of 1050)
  1672.  
  1673. @Outline3@<:#240,9360>x=rect2(1)
  1674.  
  1675. @Outline3@<:#240,9360>y=rect2(2)
  1676.  
  1677. @Outline3@<:#240,9360>xL=rect3(3)
  1678.  
  1679. @Outline3@<:#240,9360>yL=rect3(4)
  1680.  
  1681. @Outline3@<:#240,9360>moveshrink=MoveBase * (9-numglobs)
  1682.  
  1683. @Outline4@<:#240,9360>if target="as_def"
  1684.  
  1685. @Outline4@<:#240,9360>    max=137
  1686.  
  1687. @Outline4@<:#240,9360>else
  1688.  
  1689. @Outline4@<:#240,9360>    max=167
  1690.  
  1691. @Outline4@<:#240,9360>endif
  1692.  
  1693. @Outline4@<:#240,9360>if moveshrink <;> max
  1694.  
  1695. @Outline4@<:#240,9360>    moveshrink = max
  1696.  
  1697. @Outline4@<:#240,9360>endif
  1698.  
  1699. @Outline3@<:#240,9360>MoveWindow(hwndCtrl,x,y-moveshrink,xL,yL)
  1700.  
  1701. @Outline2@<:#240,9360>END FUNCTION
  1702.  
  1703. @Outline1@<:#283,9360>function initcapit(string)
  1704.  
  1705. @Outline2@<:#240,9360>if instr(0, " SSN ", string) != 0
  1706.  
  1707. @Outline2@<:#240,9360>    initcapit=string
  1708.  
  1709. @Outline2@<:#240,9360>    exit function
  1710.  
  1711. @Outline2@<:#240,9360>endif
  1712.  
  1713. @Outline2@<:#240,9360>firstchar=left$(string, 1)
  1714.  
  1715. @Outline2@<:#240,9360>restchars=lcase$(right$(string, (len(string) - 1)))
  1716.  
  1717. @Outline2@<:#240,9360>initcapit=strcat$(firstchar, restchars)
  1718.  
  1719. @Outline2@<:#240,9360>end function
  1720.  
  1721. @Outline1@<:#283,9360>DIALOG    autostyle
  1722.  
  1723. @Outline2@<:#240,9360>-2134376448    23    115    57    231    185    ""    ""    "_LETTER1.STY Information"
  1724.  
  1725. @Outline2@<:#240,9360>FONT    8    "Helv"
  1726.  
  1727. @Outline2@<:#240,9360>78    6    91    12    8001    1350631552    "edit"    ""    0 
  1728.  
  1729. @Outline2@<:#240,9360>78    21    91    12    8002    1350631552    "edit"    ""    0 
  1730.  
  1731. @Outline2@<:#240,9360>78    36    91    12    8003    1350631552    "edit"    ""    0 
  1732.  
  1733. @Outline2@<:#240,9360>78    51    91    12    8004    1350631552    "edit"    ""    0 
  1734.  
  1735. @Outline2@<:#240,9360>78    66    91    12    8005    1350631552    "edit"    ""    0 
  1736.  
  1737. @Outline2@<:#240,9360>78    81    91    12    8006    1350631552    "edit"    ""    0 
  1738.  
  1739. @Outline2@<:#240,9360>78    96    91    12    8007    1350631552    "edit"    ""    0 
  1740.  
  1741. @Outline2@<:#240,9360>78    111    91    12    8008    1350631552    "edit"    ""    0 
  1742.  
  1743. @Outline2@<:#240,9360>78    126    91    12    8009    1350631552    "edit"    ""    0 
  1744.  
  1745. @Outline2@<:#240,9360>173    5    53    14    1    1342373889    "button"    "OK"    0 
  1746.  
  1747. @Outline2@<:#240,9360>173    22    53    14    2    1342373888    "button"    "Cancel"    0 
  1748.  
  1749. @Outline2@<:#240,9360>173    39    53    14    3    1342373888    "button"    "Save &As..."    0 
  1750.  
  1751. @Outline2@<:#240,9360>3    8    75    9    1001    1342177280    "static"    "fld1:"    0 
  1752.  
  1753. @Outline2@<:#240,9360>3    23    75    9    1002    1342177280    "static"    "fld2:"    0 
  1754.  
  1755. @Outline2@<:#240,9360>3    38    75    9    1003    1342177280    "static"    "fld3:"    0 
  1756.  
  1757. @Outline2@<:#240,9360>3    53    75    9    1004    1342177280    "static"    "fld4:"    0 
  1758.  
  1759. @Outline2@<:#240,9360>3    68    75    9    1005    1342177280    "static"    "fld5:"    0 
  1760.  
  1761. @Outline2@<:#240,9360>3    83    75    9    1006    1342177280    "static"    "fld6:"    0 
  1762.  
  1763. @Outline2@<:#240,9360>3    98    75    9    1007    1342177280    "static"    "fld7:"    0 
  1764.  
  1765. @Outline2@<:#240,9360>3    113    75    9    1008    1342177280    "static"    "fld8:"    0 
  1766.  
  1767. @Outline2@<:#240,9360>3    128    75    9    1009    1342177280    "static"    "fld9:"    0 
  1768.  
  1769. @Outline2@<:#240,9360>3    143    222    36    1050    1342177280    "static"    "Default box text"    0 
  1770.  
  1771. @Outline2@<:#240,9360>3    143    219    36    1060    1342177280    "static"    "User box text"    0 
  1772.  
  1773. @Outline2@<:#240,9360>END DIALOG
  1774.  
  1775. >
  1776.  
  1777. [Embedded]
  1778. 00028408
  1779. >
  1780. [macsum] 10
  1781. main 0 0 10 24
  1782. fillboxfields 1179 1 26 79
  1783. AmiButtonCheck 4458 2 3 198
  1784. AmiUIGray 4584 2 3 203
  1785. freeglobs 4721 1 5 208
  1786. torchfields 4985 1 9 220
  1787. savesty 5424 3 1 240
  1788. PreBuild 5488 3 28 244
  1789. initcapit 8256 1 3 334
  1790. autostyle 8472 0 -1 343
  1791. [macse]
  1792. 14 main
  1793. 0 267
  1794. 13
  1795. 7 ""
  1796. 18 1
  1797. 0 34 0 0
  1798. 13
  1799. 5 0
  1800. 18 1
  1801. 1 2
  1802. 11 00000194
  1803. 0 3 "This macro is for automated style sheets.  To use it, choose File/New and leave Run macro selected."
  1804. 6 0
  1805. 15
  1806. 9
  1807. 0 296 1
  1808. 0 32 2
  1809. 0 802
  1810. 13
  1811. 8 1
  1812. 0 286 "AutoStyleSheets" "NoQuestions" "AMIPRO2.INI"
  1813. 13
  1814. 8 2
  1815. 6 2
  1816. 5 1
  1817. 18 0
  1818. 11 00000365
  1819. 16 torchfields "as_"
  1820. 6 0
  1821. 15
  1822. 9
  1823. 10 00000450
  1824. 6 2
  1825. 7 ""
  1826. 18 0
  1827. 11 00000450
  1828. 0 287 "AutoStyleSheets" "NoQuestions" 0 "AMIPRO2.INI"
  1829. 0 286 "AutoStyleSheets" "DataGood" "AMIPRO2.INI"
  1830. 13
  1831. 8 3
  1832. 6 3
  1833. 5 1
  1834. 18 1
  1835. 11 00000589
  1836. 0 295
  1837. 13
  1838. 8 4
  1839. 7 "{4}collect.smm"
  1840. 8 5
  1841. 16 "{5}"
  1842. 0 271 "Setfont:hFont" 1
  1843. 0 264 "Setfont:hFont" 0
  1844. 0 1304 0
  1845. 13
  1846. 8 6
  1847. 5 0
  1848. 6 6
  1849. 18 1
  1850. 11 00000899
  1851. 16 fillboxfields "as_def"
  1852. 13
  1853. 8 7
  1854. 6 7
  1855. 5 0
  1856. 18 0
  1857. 6 7
  1858. 5 2
  1859. 18 0
  1860. 1 2
  1861. 11 00000786
  1862. 10 00000899
  1863. 16 fillboxfields "as_user"
  1864. 13
  1865. 8 7
  1866. 6 7
  1867. 5 0
  1868. 18 0
  1869. 6 7
  1870. 5 2
  1871. 18 0
  1872. 1 2
  1873. 11 00000886
  1874. 10 00000899
  1875. 10 00000899
  1876. 16 torchfields "as_"
  1877. 7 "as_starttext"
  1878. 8 8
  1879. 2 466 1 "{8}" 4002
  1880. 13
  1881. 8 7
  1882. 6 7
  1883. 5 1
  1884. 18 0
  1885. 11 00001022
  1886. 2 466 1 "{8}" 4004
  1887. 0 265 "Setfont:hFont"
  1888. 13
  1889. 8 9
  1890. 5 0
  1891. 6 9
  1892. 18 1
  1893. 11 00001118
  1894. 0 284 "gdi,DeleteObject,HH" "{9}"
  1895. 0 266 "Setfont:hFont"
  1896. 2 109 1 "" "" 1
  1897. 0 296 0
  1898. 6 0
  1899. 15
  1900. 9
  1901. 14 fillboxfields
  1902. 20 00002979
  1903. 0 1304 0
  1904. 13
  1905. 8 2
  1906. 6 2
  1907. 5 0
  1908. 18 0
  1909. 11 00000091
  1910. 6 1
  1911. 15
  1912. 9
  1913. 0 802
  1914. 13
  1915. 8 3
  1916. 0 271 "target" 1
  1917. 0 264 "target" "{0}"
  1918. 6 2
  1919. 21 4 [X]
  1920. 5 1
  1921. 21 5 [X]
  1922. 5 1
  1923. 21 6 [X]
  1924. 5 0
  1925. 8 7
  1926. 0 1305 0 &4
  1927. 5 0
  1928. 8 8
  1929. 5 1
  1930. 8 9
  1931. 6 2
  1932. 6 9
  1933. 18 2
  1934. 12 00000310
  1935. 10 00000963
  1936. 5 1
  1937. 6 9
  1938. 3 0
  1939. 8 9
  1940. 10 00000235
  1941. 6 9
  1942. 22 4
  1943. 0 20 [X] 2 ","
  1944. 13
  1945. 8 10
  1946. 6 10
  1947. 5 12
  1948. 18 0
  1949. 11 00000388
  1950. 5 1
  1951. 8 8
  1952. 6 9
  1953. 22 4
  1954. 0 20 [X] 3 ","
  1955. 13
  1956. 8 11
  1957. 0 20 "{11}" 3 " "
  1958. 13
  1959. 8 12
  1960. 0 20 "{12}" 6 "_"
  1961. 13
  1962. 8 13
  1963. 0 17 "{13}"
  1964. 13
  1965. 7 "address2"
  1966. 18 0
  1967. 11 00000544
  1968. 5 1
  1969. 8 14
  1970. 0 20 "{12}" 1 "_"
  1971. 13
  1972. 0 20 "{12}" 2 "_"
  1973. 13
  1974. 0 20 "{12}" 3 "_"
  1975. 13
  1976. 0 20 "{12}" 4 "_"
  1977. 13
  1978. 0 20 "{12}" 5 "_"
  1979. 13
  1980. 0 16 [X] "_" [X] "_" [X] "_" [X] "_" [X] "_" "echo_"
  1981. 13
  1982. 8 15
  1983. 0 14 "{0}"
  1984. 13
  1985. 8 16
  1986. 0 806 "{12}" "{16}"
  1987. 13
  1988. 6 0
  1989. 18 0
  1990. 6 13
  1991. 7 "echo"
  1992. 18 1
  1993. 1 1
  1994. 11 00000950
  1995. 6 7
  1996. 5 1
  1997. 3 0
  1998. 8 7
  1999. 6 9
  2000. 22 4
  2001. 0 1041 &5 "{7}" [X]
  2002. 13
  2003. 8 17
  2004. 6 17
  2005. 5 0
  2006. 18 0
  2007. 11 00000950
  2008. 10 00002979
  2009. 0 1041 &6 "{7}" "{15}"
  2010. 10 00000277
  2011. 6 7
  2012. 5 0
  2013. 18 0
  2014. 11 00001014
  2015. 5 3
  2016. 8 1
  2017. 6 1
  2018. 15
  2019. 9
  2020. 0 271 "numglobs" 1
  2021. 0 264 "numglobs" "{7}"
  2022. 0 1043 &5 3 "_"
  2023. 5 1
  2024. 8 9
  2025. 6 7
  2026. 6 9
  2027. 18 2
  2028. 12 00001160
  2029. 10 00002243
  2030. 5 1
  2031. 6 9
  2032. 3 0
  2033. 8 9
  2034. 10 00001085
  2035. 6 9
  2036. 22 5
  2037. 0 20 [X] 3 ","
  2038. 13
  2039. 8 11
  2040. 0 20 "{11}" 3 " "
  2041. 13
  2042. 8 12
  2043. 0 39 34
  2044. 13
  2045. 8 18
  2046. 6 9
  2047. 22 5
  2048. 0 20 [X] 2 "{18}"
  2049. 13
  2050. 8 19
  2051. 0 20 "{12}" 6 "_"
  2052. 13
  2053. 8 13
  2054. 7 ""
  2055. 8 20
  2056. 6 13
  2057. 5 -1
  2058. 18 1
  2059. 6 13
  2060. 7 "echo"
  2061. 18 1
  2062. 6 13
  2063. 7 ""
  2064. 18 1
  2065. 1 1
  2066. 1 1
  2067. 11 00001661
  2068. 0 286 "AutoStyleSheets" "{13}" "AMIPRO2.INI"
  2069. 13
  2070. 8 20
  2071. 0 17 "{13}"
  2072. 13
  2073. 7 "address1"
  2074. 18 0
  2075. 6 14
  2076. 5 1
  2077. 18 1
  2078. 1 1
  2079. 11 00001661
  2080. 0 286 "AutoStyleSheets" "Address2" "AMIPRO2.INI"
  2081. 13
  2082. 8 21
  2083. 6 21
  2084. 7 ""
  2085. 18 1
  2086. 11 00001661
  2087. 0 16 "{20}" ", " "{21}"
  2088. 13
  2089. 8 20
  2090. 0 271 "{12}" 1
  2091. 0 20 "{12}" 1 "_"
  2092. 13
  2093. 0 20 "{12}" 2 "_"
  2094. 13
  2095. 0 20 "{12}" 3 "_"
  2096. 13
  2097. 0 20 "{12}" 4 "_"
  2098. 13
  2099. 0 20 "{12}" 5 "_"
  2100. 13
  2101. 0 16 [X] "_" [X] "_" [X] "_" [X] "_" [X] "_" "echo_"
  2102. 13
  2103. 8 15
  2104. 0 271 "{15}" 1
  2105. 0 806 "{19}" 5
  2106. 13
  2107. 0 17 [X]
  2108. 13
  2109. 7 "type "
  2110. 18 0
  2111. 11 00002000
  2112. 0 14 "{19}"
  2113. 13
  2114. 5 5
  2115. 3 1
  2116. 8 22
  2117. 0 807 "{19}" "{22}"
  2118. 13
  2119. 8 19
  2120. 0 807 "{19}" 5
  2121. 13
  2122. 0 17 [X]
  2123. 13
  2124. 7 " here"
  2125. 18 0
  2126. 11 00002128
  2127. 0 14 "{19}"
  2128. 13
  2129. 5 5
  2130. 3 1
  2131. 8 23
  2132. 0 806 "{19}" "{23}"
  2133. 13
  2134. 8 19
  2135. 16 initcapit "{19}"
  2136. 13
  2137. 8 19
  2138. 5 1000
  2139. 6 9
  2140. 3 0
  2141. 0 31 [X] "{19}:"
  2142. 5 8000
  2143. 6 9
  2144. 3 0
  2145. 0 31 [X] "{20}"
  2146. 10 00001127
  2147. 0 41 0 "{3}!PreBuild"
  2148. 0 26 "." "autostyle"
  2149. 13
  2150. 8 24
  2151. 6 24
  2152. 8 1
  2153. 6 24
  2154. 5 0
  2155. 18 0
  2156. 6 24
  2157. 5 2
  2158. 18 0
  2159. 1 2
  2160. 11 00002374
  2161. 10 00002979
  2162. 5 1
  2163. 8 9
  2164. 6 7
  2165. 6 9
  2166. 18 2
  2167. 12 00002459
  2168. 10 00002941
  2169. 5 1
  2170. 6 9
  2171. 3 0
  2172. 8 9
  2173. 10 00002384
  2174. 5 8000
  2175. 6 9
  2176. 3 0
  2177. 0 27 [X]
  2178. 13
  2179. 8 25
  2180. 6 9
  2181. 22 5
  2182. 0 20 [X] 1 ","
  2183. 13
  2184. 8 26
  2185. 6 9
  2186. 22 5
  2187. 0 20 [X] 2 ","
  2188. 13
  2189. 8 10
  2190. 6 9
  2191. 22 5
  2192. 0 20 [X] 3 ","
  2193. 13
  2194. 8 11
  2195. 0 20 "{11}" 3 " "
  2196. 13
  2197. 8 12
  2198. 0 20 "{12}" 1 "_"
  2199. 13
  2200. 0 20 "{12}" 2 "_"
  2201. 13
  2202. 0 20 "{12}" 3 "_"
  2203. 13
  2204. 0 20 "{12}" 4 "_"
  2205. 13
  2206. 0 20 "{12}" 5 "_"
  2207. 13
  2208. 0 16 [X] "_" [X] "_" [X] "_" [X] "_" [X] "_" "echo_"
  2209. 13
  2210. 8 15
  2211. 0 264 "{15}" "{25}"
  2212. 0 264 "{12}" "{25}"
  2213. 6 8
  2214. 5 1
  2215. 18 0
  2216. 11 00002928
  2217. 0 1306 "{26}" "{10}"
  2218. 13
  2219. 8 17
  2220. 2 571 1
  2221. 10 00002426
  2222. 6 8
  2223. 5 0
  2224. 18 0
  2225. 11 00002979
  2226. 2 267 1
  2227. 16 torchfields "{0}"
  2228. 16 freeglobs "{0}"
  2229. 0 266 "target"
  2230. 0 266 "numglobs"
  2231. 6 24
  2232. 5 3
  2233. 18 0
  2234. 11 00003267
  2235. 0 285 "{3}!AmiButtonCheck(25550, 1)" 0.1
  2236. 0 285 "{3}!AmiUIGray(25550, 0)" 0.1
  2237. 0 285 "{3}!AmiUIGray(25551, 0)" 0.1
  2238. 0 285 "{3}!AmiUIGray(25975, 0)" 0.1
  2239. 0 274 008
  2240. 24 305
  2241. 13
  2242. 8 17
  2243. 6 1
  2244. 15
  2245. 9
  2246. 14 AmiButtonCheck
  2247. 0 284 "user,GetActiveWindow,H"
  2248. 13
  2249. 8 3
  2250. 0 44 "{3}" "{0}"
  2251. 13
  2252. 8 4
  2253. 0 1036 "{4}" 1025 "{1}" 0
  2254. 6 2
  2255. 15
  2256. 9
  2257. 14 AmiUIGray
  2258. 0 284 "user,GetActiveWindow,H"
  2259. 13
  2260. 8 3
  2261. 0 44 "{3}" "{0}"
  2262. 13
  2263. 8 4
  2264. 0 284 "User,EnableWindow,AHH" "{4}" "{1}"
  2265. 6 2
  2266. 15
  2267. 9
  2268. 14 freeglobs
  2269. 0 14 "{0}"
  2270. 13
  2271. 8 2
  2272. 0 299
  2273. 13
  2274. 8 3
  2275. 6 3
  2276. 21 4 [X]
  2277. 0 300 &4
  2278. 5 1
  2279. 8 5
  2280. 6 3
  2281. 6 5
  2282. 18 2
  2283. 12 00000161
  2284. 10 00000252
  2285. 5 1
  2286. 6 5
  2287. 3 0
  2288. 8 5
  2289. 10 00000086
  2290. 6 5
  2291. 22 4
  2292. 0 806 [X] "{2}"
  2293. 13
  2294. 6 0
  2295. 18 0
  2296. 11 00000239
  2297. 6 5
  2298. 22 4
  2299. 0 266 [X]
  2300. 10 00000128
  2301. 6 1
  2302. 15
  2303. 9
  2304. 14 torchfields
  2305. 0 1304 0
  2306. 13
  2307. 8 2
  2308. 5 0
  2309. 6 2
  2310. 18 1
  2311. 11 00000427
  2312. 6 2
  2313. 21 3 [X]
  2314. 0 1305 0 &3
  2315. 5 1
  2316. 8 4
  2317. 6 2
  2318. 6 4
  2319. 18 2
  2320. 12 00000177
  2321. 10 00000414
  2322. 5 1
  2323. 6 4
  2324. 3 0
  2325. 8 4
  2326. 10 00000102
  2327. 6 4
  2328. 22 3
  2329. 0 20 [X] 1 ","
  2330. 13
  2331. 8 5
  2332. 6 4
  2333. 22 3
  2334. 0 20 [X] 2 ","
  2335. 13
  2336. 8 6
  2337. 6 4
  2338. 22 3
  2339. 0 20 [X] 3 ","
  2340. 13
  2341. 8 7
  2342. 0 20 "{7}" 3 " "
  2343. 13
  2344. 8 8
  2345. 0 14 "{0}"
  2346. 13
  2347. 8 9
  2348. 0 806 "{8}" "{9}"
  2349. 13
  2350. 6 0
  2351. 18 0
  2352. 11 00000401
  2353. 2 227 1 "{5}" "{6}"
  2354. 10 00000144
  2355. 10 00000427
  2356. 6 1
  2357. 15
  2358. 9
  2359. 14 savesty
  2360. 24 305
  2361. 0 284 "user,SetFocus,HH" "{0}"
  2362. 6 3
  2363. 15
  2364. 9
  2365. 14 PreBuild
  2366. 0 265 "target"
  2367. 13
  2368. 8 4
  2369. 0 265 "numglobs"
  2370. 13
  2371. 8 5
  2372. 0 284 "gdi,CreateFont,HHHHHHHHHHHHHHC" 13 0 0 0 400 0 0 0 0 0 0 0 0 "Helv"
  2373. 13
  2374. 8 6
  2375. 6 6
  2376. 11 00000527
  2377. 0 44 "{0}" 1050
  2378. 13
  2379. 8 7
  2380. 0 44 "{0}" 1060
  2381. 13
  2382. 8 8
  2383. 0 284 "user,SendMessage,HHHHJ" "{7}" 48 "{6}" 0
  2384. 0 284 "user,SendMessage,HHHHJ" "{8}" 48 "{6}" 0
  2385. 5 8000
  2386. 8 9
  2387. 5 8009
  2388. 6 9
  2389. 18 2
  2390. 12 00000409
  2391. 10 00000498
  2392. 5 1
  2393. 6 9
  2394. 3 0
  2395. 8 9
  2396. 10 00000331
  2397. 0 44 "{0}" "{9}"
  2398. 13
  2399. 8 7
  2400. 0 284 "user,SendMessage,HHHHJ" "{7}" 48 "{6}" 0
  2401. 10 00000376
  2402. 0 264 "Setfont:hFont" "{6}"
  2403. 0 279 3
  2404. 13
  2405. 8 10
  2406. 0 18 "{10}"
  2407. 13
  2408. 8 10
  2409. 0 39 091
  2410. 13
  2411. 8 11
  2412. 0 39 093
  2413. 13
  2414. 8 12
  2415. 0 16 "{11}" "{10}" "{12}"
  2416. 13
  2417. 8 10
  2418. 6 4
  2419. 7 "as_def"
  2420. 18 0
  2421. 11 00001213
  2422. 0 284 "user,GetActiveWindow,H"
  2423. 13
  2424. 0 284 "user,SetWindowText,IHC" [X] "Default Information"
  2425. 0 44 "{0}" 3
  2426. 13
  2427. 0 284 "User,ShowWindow,AHH" [X] 1
  2428. 0 44 "{0}" 1060
  2429. 13
  2430. 0 284 "User,ShowWindow,AHH" [X] 0
  2431. 7 "Type the information that you want to appear each time "
  2432. 8 13
  2433. 7 "you create this type of document.  Choose OK to insert this information "
  2434. 8 14
  2435. 7 "into the current document only.  Choose Save As to save this "
  2436. 8 15
  2437. 7 "information to a new style sheet."
  2438. 8 16
  2439. 7 "{13}{14}{15}{16}"
  2440. 8 17
  2441. 0 31 1050 "{17}"
  2442. 10 00001544
  2443. 0 284 "user,GetActiveWindow,H"
  2444. 13
  2445. 0 284 "user,SetWindowText,IHC" [X] "Optional Information"
  2446. 0 44 "{0}" 3
  2447. 13
  2448. 0 284 "User,ShowWindow,AHH" [X] 0
  2449. 0 44 "{0}" 1060
  2450. 13
  2451. 0 284 "User,ShowWindow,AHH" [X] 0
  2452. 7 "Type the information you want to appear "
  2453. 8 13
  2454. 7 "in this document."
  2455. 8 14
  2456. 7 "{13}{14}{15}{16}"
  2457. 8 17
  2458. 0 31 1050 "{17}"
  2459. 6 5
  2460. 5 1
  2461. 3 0
  2462. 8 9
  2463. 5 9
  2464. 6 9
  2465. 18 2
  2466. 12 00001639
  2467. 10 00001816
  2468. 5 1
  2469. 6 9
  2470. 3 0
  2471. 8 9
  2472. 10 00001564
  2473. 5 1000
  2474. 6 9
  2475. 3 0
  2476. 8 18
  2477. 0 44 "{0}" "{18}"
  2478. 13
  2479. 0 284 "User,ShowWindow,AHH" [X] 0
  2480. 5 8000
  2481. 6 9
  2482. 3 0
  2483. 8 19
  2484. 0 44 "{0}" "{19}"
  2485. 13
  2486. 0 284 "User,ShowWindow,AHH" [X] 0
  2487. 10 00001606
  2488. 5 4
  2489. 21 20 [X]
  2490. 0 284 "user,GetWindowRect,HHN" "{0}" &20
  2491. 5 1
  2492. 22 20
  2493. 8 21
  2494. 5 2
  2495. 22 20
  2496. 8 22
  2497. 5 3
  2498. 22 20
  2499. 8 23
  2500. 5 4
  2501. 22 20
  2502. 8 24
  2503. 5 24
  2504. 8 25
  2505. 6 25
  2506. 5 9
  2507. 6 5
  2508. 3 1
  2509. 4 0
  2510. 8 26
  2511. 6 4
  2512. 7 "as_def"
  2513. 18 0
  2514. 11 00002075
  2515. 6 26
  2516. 5 22
  2517. 3 0
  2518. 8 26
  2519. 5 145
  2520. 8 27
  2521. 10 00002111
  2522. 6 26
  2523. 5 50
  2524. 3 0
  2525. 8 26
  2526. 5 217
  2527. 8 27
  2528. 6 26
  2529. 6 27
  2530. 18 3
  2531. 11 00002154
  2532. 6 27
  2533. 8 26
  2534. 6 23
  2535. 6 21
  2536. 3 1
  2537. 6 24
  2538. 6 22
  2539. 6 26
  2540. 3 0
  2541. 3 1
  2542. 0 284 "user,MoveWindow,HHHHHHH" "{0}" "{21}" "{22}" [X] [X] 1
  2543. 0 44 "{0}" 1050
  2544. 13
  2545. 8 28
  2546. 5 4
  2547. 21 29 [X]
  2548. 5 4
  2549. 21 30 [X]
  2550. 0 284 "user,GetWindowRect,HHN" "{28}" &29
  2551. 0 284 "user,ScreenToClient,HHN" "{0}" &29
  2552. 0 284 "user,GetClientRect,HHN" "{28}" &30
  2553. 5 1
  2554. 22 29
  2555. 8 21
  2556. 5 2
  2557. 22 29
  2558. 8 22
  2559. 5 3
  2560. 22 30
  2561. 8 23
  2562. 5 4
  2563. 22 30
  2564. 8 24
  2565. 6 25
  2566. 5 9
  2567. 6 5
  2568. 3 1
  2569. 4 0
  2570. 8 26
  2571. 6 4
  2572. 7 "as_def"
  2573. 18 0
  2574. 11 00002616
  2575. 5 137
  2576. 8 27
  2577. 10 00002629
  2578. 5 167
  2579. 8 27
  2580. 6 26
  2581. 6 27
  2582. 18 3
  2583. 11 00002672
  2584. 6 27
  2585. 8 26
  2586. 6 22
  2587. 6 26
  2588. 3 1
  2589. 0 284 "user,MoveWindow,HHHHHHH" "{28}" "{21}" [X] "{23}" "{24}" 1
  2590. 6 3
  2591. 15
  2592. 9
  2593. 14 initcapit
  2594. 0 808 0 " SSN " "{0}"
  2595. 13
  2596. 5 0
  2597. 18 1
  2598. 11 00000087
  2599. 6 0
  2600. 8 1
  2601. 6 1
  2602. 15
  2603. 9
  2604. 0 806 "{0}" 1
  2605. 13
  2606. 8 2
  2607. 0 14 "{0}"
  2608. 13
  2609. 5 1
  2610. 3 1
  2611. 0 807 "{0}" [X]
  2612. 13
  2613. 0 17 [X]
  2614. 13
  2615. 8 3
  2616. 0 16 "{2}" "{3}"
  2617. 13
  2618. 8 1
  2619. 6 1
  2620. 15
  2621. 9
  2622. DIALOG autostyle
  2623. -2134376448 23 115 57 231 185 "" "" "_LETTER1.STY Information" 
  2624. FONT 8 "Helv" 
  2625. 78 6 91 12 8001 1350631552 "edit" "" 0 
  2626. 78 21 91 12 8002 1350631552 "edit" "" 0 
  2627. 78 36 91 12 8003 1350631552 "edit" "" 0 
  2628. 78 51 91 12 8004 1350631552 "edit" "" 0 
  2629. 78 66 91 12 8005 1350631552 "edit" "" 0 
  2630. 78 81 91 12 8006 1350631552 "edit" "" 0 
  2631. 78 96 91 12 8007 1350631552 "edit" "" 0 
  2632. 78 111 91 12 8008 1350631552 "edit" "" 0 
  2633. 78 126 91 12 8009 1350631552 "edit" "" 0 
  2634. 173 5 53 14 1 1342373889 "button" "OK" 0 
  2635. 173 22 53 14 2 1342373888 "button" "Cancel" 0 
  2636. 173 39 53 14 3 1342373888 "button" "Save &As..." 0 
  2637. 3 8 75 9 1001 1342177280 "static" "fld1:" 0 
  2638. 3 23 75 9 1002 1342177280 "static" "fld2:" 0 
  2639. 3 38 75 9 1003 1342177280 "static" "fld3:" 0 
  2640. 3 53 75 9 1004 1342177280 "static" "fld4:" 0 
  2641. 3 68 75 9 1005 1342177280 "static" "fld5:" 0 
  2642. 3 83 75 9 1006 1342177280 "static" "fld6:" 0 
  2643. 3 98 75 9 1007 1342177280 "static" "fld7:" 0 
  2644. 3 113 75 9 1008 1342177280 "static" "fld8:" 0 
  2645. 3 128 75 9 1009 1342177280 "static" "fld9:" 0 
  2646. 3 143 222 36 1050 1342177280 "static" "Default box text" 0 
  2647. 3 143 219 36 1060 1342177280 "static" "User box text" 0 
  2648. 00028433
  2649.